package com.schoolET.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 管理员和管理区域表
 * </p>
 *
 * @author le
 * @since 2024-06-01
 */
@Getter
@Setter
@TableName("admin_and_region")
@ToString
@ApiModel(value = "AdminAndRegion对象", description = "管理员和管理区域表")
public class AdminAndRegion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("管理员ID")
    private Integer adminId;

    @ApiModelProperty("管理区域ID")
    private Integer regionId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("有效字段")
    private Integer flag;
}
